package com.boolib.animate.framework.service.extend;


import org.apache.commons.fileupload.FileUploadException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 功能描述：
 *
 * @author Administrator
 * @description
 * @since 2019/12/27 15:28
 */
public interface IUploadService {


	/**
	 * 上传单个图片
	 * @param path
	 * @param multipartFile
	 * @return
	 * @throws IOException
	 * @throws FileUploadException
	 */
	String uploadImage(String path, MultipartFile multipartFile) throws IOException, FileUploadException;


	/**
	 * 上传多个图片
	 * @param path
	 * @param multipartFiles
	 * @return
	 */
	List<String> uploadImages(String path, List<MultipartFile> multipartFiles) throws IOException, FileUploadException;


	/**
	 * @param path
	 * @param name
	 */
	void removeOne(String path, String name);

	/**
	 * @param path
	 * @param names
	 */
	void removeList(String path, List<String> names);



}
